package com.widetrust.carpro.dao.insuranceorderpostil;

import java.util.List;
import java.util.Map;

import com.widetrust.carpro.domain.insuranceorderpostil.CarCode;
import com.widetrust.carpro.domain.insuranceorderpostil.InsuranceOrder_VO;
import com.widetrust.carpro.domain.insuranceorderpostil.OrderPos_VO;
import com.widetrust.carpro.domain.insuranceorderpostil.PosInfo;
import com.widetrust.carpro.domain.insuremanage.fee.InsuranceProductBean;
import com.widetrust.carpro.presentation.insuranceorderpostil.PosQuery;
import com.widetrust.orm.pageination.PageinationBean;

/**
 * @author yyq
 *
 */
public interface I_InsuranceOrderPostilDAO {
	public InsuranceOrder_VO findInsuranceOrder(int insuranceComId,String insuranceOrderId,int orderType);
	public List<InsuranceOrder_VO> findOrderAndPosByOrdIdsAndPosIds(int ordIds,int posids);
	public InsuranceOrder_VO findInsuranceOrder(int posIds);
	public InsuranceOrder_VO findInsuranceOrder(String posNo);
	public boolean updateCarCode(InsuranceOrder_VO insuranceOrder_new);
	public boolean updateInsuranceOrder(InsuranceOrder_VO insuranceOrder,Map<String,InsuranceProductBean> proMap);
//	public OrderPos_VO findOrderPos(int posIds);
	public boolean updateOrderPos(OrderPos_VO orderPos);
	public boolean fufei(int posIds,String username,String cashUser1,String cashTime1,String POScashType);
	public boolean jiaofei(int posIds,String username,String cashUser1,String cashTime1,String POScashType);
	public boolean skipPos(int posIds,String POScashType);
	public boolean jiaofei3(int posIds,String username,String cashUser3,String cashTime3,String POScashType);
	public boolean huakuan2(int posIds,String username,String cashUser3,String cashTime3,String POScashType);
	public boolean huakuan3(int posIds, String username, String POScashType);
	public boolean huakuan(int posIds,String username,String cashUser3,String cashTime3);
	public boolean fuhe(int posIds,String username);
	public boolean updatePostil(InsuranceOrder_VO insuranceOrder_new);
	public int insertOrderPostil(OrderPos_VO orderPos);
	public int insertOrderPostil2(OrderPos_VO orderPos);
	public int insertPosForImport(OrderPos_VO orderPos);
	public boolean insertCodePos(InsuranceOrder_VO insuranceOrder_new);
	public boolean cancelPos(int posIds,String cancelContent);
	public boolean modAgentPos(String posIds,String agentNoPos);
	public boolean returnPos(int posIds,String cancelContent);
	public boolean cancel_Pos(int posIds);
	public CarCode findCode(int insuranceComId, String insuranceOrderId,int orderType);
	public boolean changePosState(int posIds, int posState);
	public List<PosInfo> findPos(PosQuery posQuery,PageinationBean pageBean);
	public boolean receivePos(int posIds,String username);
	public boolean posFinalCheck(int posIds,String posNo);
	public String  findPosNOBydPosIds(int PosIds);
	public int  findPosIdsByOrdidsAndPosno(String ordIds,String posNo);
	public int getMyAcceptNum(String username, String posState);
}
